package com.example.nio.commons;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@NoArgsConstructor
public class WxUser  {
    /**
     * 
     */
    private String openid;
    private String nickname;
    /**
     * 头像
     */
    private String headImg;
    /**
     * 1 web用户
     * 2 微信用户
     */
    private String aliasName;
    private Integer messageSource;

    public WxUser(String nickname,String headImgUrl,String openid){
        this.openid = openid;
        this.nickname = nickname;
        this.headImg = headImgUrl;
    }

    public WxUser(String nickname,String headImgUrl,String openid,String aliasName,Integer messageSource){
        this.openid = openid;
        this.nickname = nickname;
        this.headImg = headImgUrl;
        this.aliasName = aliasName;
        this.messageSource = messageSource;
    }
}